import { connect } from 'react-redux'
import Hypothecation from '../../../../views/My/MyUtils/Hypothecation/index'

function mapStateToProps(state: any) {
    return {
        userInfo: state.user.userInfo,
        userCreditor: state.user.userCreditor
    }
}

function mapDispatchToProps(dispatch: (obj: any) => void) {
    return {
        'SET_MYUTILS_CREDITOR': (data: any) => {
            dispatch({ type: 'SET_MYUTILS_CREDITOR', data })
        },
    }
}

export default connect(mapStateToProps, mapDispatchToProps)(Hypothecation)